<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="/wondershare/js/jquery.js"></script> 
<script src="/wondershare/js/comment.js"></script> 
<link href="/wondershare/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/wondershare/styles/general.css" rel="stylesheet" type="text/css" />


<title>留言<{$tile}>页</title>

<script>
function check_submit()
{
 if($('#user_name').val().replace(/(^\s*)|(\s*$)/g, "")=="")
  {
      alert('用户名不能为空！');
      $("#user_name").focus();
      return false;
  }
  if($('#content').val().replace(/(^\s*)|(\s*$)/g, "")=="")
  {
      alert('留言内容不能为空！');
      $("#content").focus();
      return false;
  }
  return true;
}
</script>
</head>

<body  >
<h1>

<span class="action-span1">
<a href="/wondershare/product.php?action=productList" style="text-decoration:underline">公共产品信息管理</a> -
<a href="/wondershare/comment.php?action=index&product_id=<{$product_id}>" style="text-decoration:underline">评论管理</a> 
</span>
<span id="search_id" class="action-span1"> - 评论<{$tile}> </span>
<div style="clear:both"></div>
</h1>
<div id="tabbar-div">
      <p>
     
      </p>
    </div>
<div id="tabbody-div"  style=" width:1100px;">
      <form  name="theForm" method="post" action="/wondershare/comment.php?action=add_edit" onsubmit="return check_submit();">
        <table align="center" width="90%" id="general-table">
          <tbody>
		  <tr>
            <td class="label">产品名称：</td>
            <td><{if $product_name neq ''}> <span style="color:#FF0000"> <{$product_name}> </span> <{else}> <span style="color:#FF0000"><{$comment_info.product_name|escape}></span> <{/if}> </td>
          </tr>
		   <tr>
            <td class="label">用户名：</td>
            <td><input type="text" size="30" style="float:left;color:;" value="<{$comment_info.user|escape}>" name="user_name" id="user_name"> <span class="require-field">*</span></td>
          </tr>
		  <tr>
            <td class="label">国家：</td>
            <td>
			<select id="country" style="width:220px;" name="country" >
		<option  value="Other" <{if $comment_info.country  == 'Other'}> selected="selected" <{/if}> >Other</option>
		<option  value="Unitied States" <{if $comment_info.country  == 'Unitied States'}> selected="selected" <{/if}> >Unitied States</option>
		<option  value="Australia"  <{if $comment_info.country  == 'Australia'}> selected="selected" <{/if}> >Australia</option>
		<option  value="Canada"   <{if $comment_info.country  == 'Canada'}> selected="selected" <{/if}> >Canada</option>
		<option value="Unitied Kindom"  <{if $comment_info.country  == 'Unitied Kindom'}> selected="selected" <{/if}> >Unitied Kindom</option>

		</select>
			 </td>
          </tr>
		  
		  <tr>
            <td class="label">显示顺序：</td>
            <td><input type="text" size="30" style="float:left;color:;" value="<{if $comment_info.sort}><{$comment_info.sort}><{else}>50<{/if}>" name="sort" id="sort"> </td>
          </tr>
		  <tr>
		  
		  <tr>
            <td class="label">是否在网站显示：</td>
            <td>
			<select id="is_show" style="width:220px;" name="is_show" >
		<option  value="0" <{if $comment_info.is_show   == '0'}> selected="selected" <{/if}> >否</option>
		<option  value="1" <{if $comment_info.is_show   == '1'}> selected="selected" <{/if}> >是</option>
		

		</select>
			 </td>
          </tr>

		  <tr>
            <td class="label">评论内容：</td>
  			<td>
			  <textarea cols="48" rows="6" id="content" name="content"><{$comment_info.content|escape}></textarea>
              <span class="require-field">*</span></td>
          </tr>        

        </tbody></table>

        <div  style="margin-left:380px; margin-top:20px;">
          <input type="hidden"  name="comment_id" value="<{$comment_info.comment_id}>">
	
          <input type="submit"   class="button" value="<{$tile}> " name="sub_from">
          <input type="reset" class="button" value=" 重置 ">
        </div>
        <input type="hidden" value="<{$form_act}>" name="act" >
        <input type="hidden" value="<{$product_id}>" name="product_id" >
        <input type="hidden" value="<{$product_name}>" name="product_name" >
      </form>
    </div>
</body>
</html>